package com.antonytrupe.fatcontroller.pc;

public class Main {

	public static void main(String[] args) {
		// Schedule a job for the event-dispatching thread:
		// creating and showing this application's GUI.
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				new Main().createAndShowGUI();
			}
		});
	}

	/**
	 * Create the GUI and show it. For thread safety, this method should be
	 * invoked from the event-dispatching thread.
	 */
	private void createAndShowGUI() {
		// create the controller
		PCController controller = new PCController();

		// tell the controller to create the initial view
		controller.createGUI();

		// tell the controller to start the scan
		try {
 			controller.initiateEngineSearch();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}